<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf" %>
<script type="text/javascript" src="${ctx}/js/mould/pBeforeCheck/pBeforeCheck_edit.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}
label[class^="btn btn-default"]{
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/surfaceCheck/surfaceCheck_editEntity.shtml">
		<input type="hidden" class="form-control checkacc" value="${progress.id}"
			name="surfaceCheckFormMap.id" id="id">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">日期</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" readonly value="${progress.date}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">模具编号？？？</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" readonly value=""/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">客户名称？？？</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" readonly value=""/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">供应商名称</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkabh" readonly value="${progress.manufacturers}"/>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				
				<!-- 开始处理检查标准 -->
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="panel panel-default">
				<div class="panel-body">
					<table class="table table-bordered">
						<thead>
							<tr>
								<th style="text-align: center;width:176px;">检查项目</th>
								<th style="text-align: center;width:176px;">检查标准</th>
								<th style="text-align: center;width:135px;">供应商自检</th>
								<th style="text-align: center;width:136px;">结果</th>
								<th style="text-align: center;width:136px;">实测</th>
								<th style="text-align: center;width:136px;">判断结果</th>
								<th style="text-align: center;width:136px;">验收人</th>
							</tr>
						</thead>
						<tbody id="tbl">
							<c:forEach var="c" items="${check }">
									<tr>
										<td>
											<div class="input-group">
												<input type="text" class="form-control" readonly="readonly"
													 value="${c.itemName}">
											</div>
										</td>
										<td>
											<div class="input-group">
												<input type="hidden" class="form-control" readonly="readonly"
													name="standardId_1" value="${c.standardId}">
												<input type="text" class="form-control" readonly="readonly"
													 value="${c.standardName}">
											</div>
										</td>
										<td>
											<div class="input-group">
												<input type="text" class="form-control"
													name="supplierCheck_1" value="${c.supplierCheck}">
											</div>
										</td>
										<td>
											<div class="input-group">
												<input type="text" class="form-control"
													name="result_1" value="${c.result}">
											</div>
										</td>
										<td>
											<div class="input-group">
												<input type="text" class="form-control"
													name="practicalTest_1" value="${c.practicalTest}">
											</div>
										</td>
									<td>
										<div class="input-group">
											<select class="form-control" name="checkResult_1">
												<option value="1" <c:if test="${c.checkResult eq 1}"> SELECTED</c:if>>合格</option>
												<option value="2" <c:if test="${c.checkResult eq 2}"> SELECTED</c:if>>不合格</option>
											</select>
										</div>
									</td>
									<td>
										<div class="input-group">
											<input type="text" class="form-control"
												name="acceptPeople_1" value="${c.acceptPeople}">
										</div>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer> 
	</section>
	</form>
</body>
</html>
